public class StringDemo11 {
    //利用StringBuffer拼接字符串

    public static void main(String[] args) {
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("hello");
        stringBuffer.append("world");

        System.out.println(stringBuffer.toString());
    }


}
